﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore_Test.Entities
{
    //实体关系配置
    //三种方式 1.默认约定映射配置 2.数据注解 3.FluentApi
    //1.例如：id默认为主键
    //2.其实就是特性，不过保存这些特性的命名空间叫数据注解
    //3.efcore实体配置

    //三种方式的优先级为3>2>1
    public class Account
    {
        public Guid Id { get; set; }
        public string Name { get; set; }

        public int Age { get; set; }

        public string Address {  get; set; }

        /// <summary>
        /// 软删除标记
        /// </summary>
        public bool Deleted { get; set; }
    }
}